local BasePlugin = require "kong.plugins.base_plugin"
local access = require "kong.plugins.oauth2-client.access"
local OAuthClientHandler = BasePlugin:extend()

OAuthClientHandler.VERSION  = "1.0.0"
OAuthClientHandler.PRIORITY = 1007

function OAuthClientHandler:new()
  OAuthClientHandler.super.new(self, "oauth2-client")
end

function OAuthClientHandler:access(config)
  OAuthClientHandler.super.access(self)
  access.execute(config)
end

return OAuthClientHandler

